<!DOCTYPE html><!--suppress ALL-->
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>thymeleaf 模板引擎</title>
    <meta name="keywords" content="关键字">
    <meta name="description" content="简介">
</head>

<body>
[[${param.id?:200}]]
<hr>
<h2>spring: [[${T(org.springframework.core.SpringVersion).getVersion()}]]</h2>
<h2>thymeleaf: [[${T(org.thymeleaf.Thymeleaf).VERSION}]]</h2>
<hr>
<h1>[[${'helloworld'.toUpperCase()}]]</h1>
[[${age?:18}]]
<br>
[[${msg}]]<th:block th:text="${msg}"/>
<hr>
[(${msg})]<th:block th:utext="${msg}"/>
<hr>
<th:block th:each="i:${#numbers.sequence(1,5)}">
    [[${i}]] - [[${msg}]]<br>
</th:block>
<hr>
<script th:inline="javascript">
    let id = /*[[${id}]]*/ 10
    let name = /*[[${name}]]*/ 'lisi'
    console.log(id)
    console.log(name)
    let age = /*[[${age?:88}]]*/ 99;
    //alert(age)
</script>
<h2 th:each="count:${#numbers.sequence(10,5)}" th:text="'hello - '+${count}"></h2>
<th:block th:each="count:${#numbers.sequence(0,5)}">
    <p th:text="${count}"></p>
</th:block>
</body>
</html>
